import {interaction} from '@/package/tools/interaction'

export default {
  name: '文字框',
  icon: '/img/text/text.png',
  type: '文本',
  cptKey: 'widget-text',
  width: 150,
  height: 40,
  dynamic: true,
  isHidden: false,
  options: {
    interaction,
    cptDataForm: {
      dataText: '{"value":"普通文本"}',
      dataSource: 1,
      pollTime: 0,
      sql: '',
      dataSourceId: '',
      dataSetId: '', // 数据集id
      dateSetName: '', // 数据集名称
      dataHandle: '' // 数据处理函数
    },
    attribute: {
      url: '',
      textColor: '#fff',
      textSize: 16,
      fontWeight: 'normal',
      textLineHeight: 30,
      textFamily: '微软雅黑',
      textAlign: 'center',
      fontStyle: 'normal',
      textDecoration: 'none',
      letterSpacing: 0,
      bgColor: 'rgba(255, 255, 255, 0)',
      isMarquee: false,
      duration: 10,
      waitTime: 1,
      isShadow: false,
      shadowOffsetX: 1,
      shadowOffsetY: 0,
      shadowBlur: 1,
      shadowColor: '#0ad8e7',
      isGradual: false, // 是否渐变文字
      gradualColor: '' // 渐变颜色
    }
  }
}
